package cn.org.mrliu.ssm.common.web.vo;

import java.io.Serializable;

public class ResponseMessage implements Serializable{
	private static final long serialVersionUID = -2317574739083203226L;
	private boolean success = true;
	private Object message;
	private Object data;
	private Integer code;

	public ResponseMessage() {
	}

	public ResponseMessage(Object message) {
		this.message = message;
	}

	public ResponseMessage(boolean success, Object message) {
		this.success = success;
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public Object getMessage() {
		return message;
	}

	public void setMessage(Object message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	@Override
	public String toString() {
		return "ResponseMessage [success=" + success + ", message=" + message + ", data=" + data + ", code=" + code
				+ "]";
	}
}
